package com.bdqn.xiaomimall.product;

import net.sf.json.JSONArray;

import java.util.Collection;
import java.util.List;

public class test {
    private String username;
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * json转换对应的list结集合
     * @param str
     * @return
     */
    public static List<test> jsonToList(String str){
        return (List<test>) JSONArray.toCollection(JSONArray.fromObject(str),test.class);
    }
}
